]> permondes.de Git - Analog_Engine.git/blob - scripts/TP1 09.26 rope over table edge.LACE
Potentials and Motion
[Analog_Engine.git] / scripts / TP1 09.26 rope over table edge.LACE
1 # a rope slides frictionlessly down the edge of a table
2 # x'' = g/l * x
3
4 coefficient(1): 1 -> x0' # initial speed
5 coefficient(2): -1 -> -x0 # initial length of rope already over the edge of the table
6 coefficient(3): g/l # gravity constant (g) divided by the length of the rope (l)
7
8 iintegrate (x'') -> -x':
9 IC: x0'
10 iintegrate (-x') -> x:
11 IC: -x0
12 x * g/l -> g/l*x = x''
13
14 # note: positive x-axis in the direction of the falling rope (so down)
15 # for visualization, -x is displayed
16 invert (x) -> -x # goes to output x